<?php
if ($_SERVER['HTTP_HOST'] == 'q618.demo') {
	$yii = dirname(__FILE__) . '/../../yii/framework/yiiBase.php';
	require_once($yii);
	
	class Yii extends YiiBase
	{
		/* !CodeTemplates.overridecomment.nonjd!
		 * @see YiiBase::app()
		 */
		public static function app() {
			// TODO 自动生成的方法存根
			return parent::app();
		}		
	}
	
	$config = dirname(__FILE__) . '/protected/config/dev.php';
	defined('YII_DEBUG') or define('YII_DEBUG', true);
	defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
} else {
	// change the following paths if necessary
	$yii=dirname(__FILE__).'/../../yii/framework/yii.php';
	$config=dirname(__FILE__).'/protected/config/production.php';
	
	// remove the following lines when in production mode
	defined('YII_DEBUG') or define('YII_DEBUG',true);
	// specify how many levels of call stack should be shown in each log message
	//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

	require_once($yii);
}





Yii::createWebApplication($config)->run();
